package com.clement.spring.study.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.jms.connection.SingleConnectionFactory;

import javax.jms.ConnectionFactory;
import javax.jms.JMSException;
import javax.jms.Queue;
import javax.jms.QueueSession;

/**
 * Created by Clement on 2017/2/23.
 */
//@Configuration
public class JmsConfig {
    @Bean
    public ConnectionFactory singleFactory() {
        return new SingleConnectionFactory();
    }
    @Bean
    public Queue getQue() {
        return () -> "hello";
    }
}
